'use strict';

angular.module('Common').controller('EntendEnumListController', ['$scope', 'BaseModule', '$location', 'Authentication',
    function($scope, BaseModule, $location, Authentication) {
    	BaseModule.initModule($scope, 'ExtendEnum');
        $scope.Module.ExtendEnum.PageSize = 15;

        $scope.btnAdd = function(){
        	$location.url('/index/ExtendEnum/Edit');
        };

        $scope.rowDblClick = function(){
        	$scope.$apply(function(){
                $location.url("/index/ExtendEnum/Edit/" + $scope.Module.ExtendEnum.FocusedRecord._id);
            });
        };

        $scope.btnDelete = function(){
        	$scope.Module.ExtendEnum.deleteSelecteds();
        };
    }
]);
